import request from '@/utils/request';

// 产品小样列表
export function proSampleList(query) {
    return request({
        url: '/system/sample/list',
        method: 'get',
        params: query
    })
}

// 产品小样新增
export function proSampleAdd(data) {
    return request({
        url: '/system/sample/add',
        method: 'post',
        data: data
    })
}

// 产品小样修改
export function proSampleEdit(data) {
    return request({
        url: '/system/sample/edit',
        method: 'post',
        data: data
    })
}

// 产品小样详情
export function proSampleDetail(id) {
    return request({
        url: '/system/sample/getInfo?id=' + id,
        method: 'get'
    })
}